package spec.tianjunxiu.unit4.clazzlizi._4_15;

public class StringBufferTest {

    public static void main(String[] args) {
        String s="Hello World!!";
        StringBuffer sb=new StringBuffer();
        sb.append(s).append("您好！！").append("Java");
        sb.deleteCharAt(5);
        System.out.println(sb);
        System.out.println(sb.reverse());
        //链式编程
//StringBuffer有个类方法叫append，它的返回值也是StringBuffer，StringBuffer对象可以去访问类方法append
    }
}
